import { url } from '../../build/config'
import ajax from './ajax'
import da from "element-ui/src/locale/lang/da";

const base_url = url.base_url + '/api/qa-role';

export function roleList() {
  return ajax({
    url: `${base_url}/list`,
    method: 'get'
  })
}


export function saveRole(data) {
  return ajax({
    url: `${base_url}`,
    method: 'post',
    data: data,
    showMsg: true
  })
}
